/**
 * -------------------通用
 */
.mb5 {
  margin-bottom: 5px;
}
.tx-center {
  text-align: center;
}
.full-input {
  width: 100% !important;
}
.page-tool {
  border-bottom: 1px solid #ececec;
  padding: 0 15px;
}
.page-tool-sub {
  border-top: 1px solid #ececec;
  padding: 0 15px;
  background: linear-gradient(180deg, #f9fbff 0, #ffffff 50%, #f2f4f7 100%);
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
}
.flex-cc {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.adv-line {
  border-bottom: 1px solid #ececec;
  margin-bottom: 5px;
  padding-bottom: 5px;
}
.link {
  color: #0c76e5;
  cursor: pointer;
}

.el-table__row {
  &.row_warning {
    background: #faecd0;
  }
  &.row_success {
    background: #e2ffd5;
  }
}



/**
 * element-ui 修改
 */
.page-container {
  position: relative;
  height: calc(100vh - 84px);
}
/***** el-table *****/
$--fontSize: 12px;

.el-table {
  font-size: $--fontSize;

  .el-table--border td, .el-table--border th {
    border-right: 1px solid #ebeef5;
  }
  .el-table .el-table__header-wrapper th, .el-table .el-table__fixed-header-wrapper th {
    height: 30px;
    font-size: 12px;
  }


  th {
    color: #2d4a84;
    background: linear-gradient(180deg, #f9f9f9 0, #efefef);
  }
  .el-table__header-wrapper th {
    padding: 0;
  }

  .row_level_2 {
    background-color: #f5fff5;
  }
  .row_level_3 {
    background-color: #ffeccf;
  }
}
.el-table--mini td.el-table__cell {
}
.el-table .el-table__header-wrapper th, .el-table .el-table__fixed-header-wrapper th {
  padding: 0;
}
.el-table--scrollable-x .el-table__body-wrapper {
  &::-webkit-scrollbar {
    height: 12px;
  }
}


.vue-treeselect__control {
  height: 28px !important;
  font-size: 13px;
  line-height: 26px !important;
  box-sizing: border-box;

  .vue-treeselect__placeholder, .vue-treeselect__single-value {
    line-height: 26px;
  }
}


/**
 * -------------------tree
 */
.indicator-tree {
  height: 100%;
    // 修改图标
    .el-tree .el-tree-node__expand-icon.expanded {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    .el-tree .el-icon-caret-right:before {
      content: "\e783";
      font-size: 18px;
    }
    .el-tree .el-tree-node__expand-icon.expanded.el-icon-caret-right:before {
      content: "\e781";
      font-size: 18px;
    }
    // 修改选中样式
    .el-tree-node__content:hover {
      background-color: #deefff;
      border-radius: 2px;
      color: #1381e1 !important;
      font-size: 14px;
    }
    .el-tree-node:focus>.el-tree-node__content{
      background-color: #deefff !important;
      color: #1381e1 !important;
    }

    // 设置树形组件节点的定位和左内边距
    .el-tree-node {
      position: relative;
    }

    // 设置树形组件节点的 before 伪类的样式
    .el-tree-node:before {
      width: 1px;
      height: 100%;
      content: '';
      position: absolute;
      top: -38px;
      bottom: 0;
      left: 0;
      right: auto;
      border-width: 1px;
      border-left: 1px solid #d9d9d9ab;
    }

    // 设置树形组件节点的 after 伪类的样式
    .el-tree-node:after {
      width: 13px;
      height: 13px;
      content: '';
      position: absolute;
      left: 0;
      right: auto;
      top: 12px;
      bottom: auto;
      border-width: 1px;
      border-top: 1px solid #d9d9d9ab;
    }

    // 设置树形组件首节点的左边框不显示
    .el-tree > .el-tree-node:before {
      border-left: none;
    }

    // 设置树形组件首节点的顶部边框不显示
    .el-tree > .el-tree-node:after {
      border-top: none;
    }

    // 设置树形组件末节点的 before 伪类的高度
    .el-tree .el-tree-node:last-child:before {
      height: 50px;
    }

    // 设置树形组件节点字体大小、以及取消左内边距
    .el-tree .el-tree-node__content {
      color: #000;
      font-size: 14px;
      padding-left: 0 !important;
    }

    // 设置树形组件孩子节点左内边距
    .el-tree .el-tree-node__children {
      padding-left: 11.5px;
      .el-tree-node{
        padding-left: 13px;
      }
    }

    // 设置树形组件复选框左右外边距
    .el-tree .el-tree-node__content > label.el-checkbox {
      margin: 0 5px 0 5px !important;
    }

    // 设置树形组件展开图标定位、图层、内边距
    .el-tree .el-tree-node__expand-icon {
      position: relative;
      z-index: 99;
    }

    // 设置树形组件叶子节点的默认图标不显示
    .el-tree .el-tree-node__expand-icon.is-leaf {
      display: none;
    }

    // 设置树形组件叶子节点的横线
    .el-tree .leaf-node-line {
      width: 23px;
      height: 13px;
      content: '';
      position: absolute;
      left: 13px;
      right: auto;
      top: 12px;
      bottom: auto;
      border-width: 1px;
      border-top: 1px solid #d9d9d9ab;
    }

    // 设置树形组件有叶子节点的左外边距
    .el-tree .el-tree-node__content:has(.is-leaf){
      padding-left: 8px !important;
    }
}


.el-input {
  &__inner {
    &[readonly="readonly"] {
      background-color: #F5F7FA;
      border-color: #dfe4ed;
      color: #C0C4CC;
      cursor: not-allowed;
    }
  }
}

.el-select {
  .el-input {
    &__inner {
      &[readonly="readonly"] {
        background-color: #FFFFFF;
        border: 1px solid #DCDFE6;
        color: #606266;
        cursor: pointer;
      }
    }
  }
}

/**
 * -------------------vis
 */
.vis-item.green {
  background-color: greenyellow;
  border-color: green;
}
.vis-item.orange {
  background-color: gold;
  border-color: orange;
}
.vis-item.vis-selected.orange {
  /* custom colors for selected orange items */
  background-color: orange;
  border-color: orangered;
}

.customer-vis-template {
  ul {
    list-style: none;
    margin: 0;
    padding: 10px;
  }
  span {
    margin-right: 0px;
    color: #555;
  }
  div {
    display: inline-block;
  }
}

/*
 * handsome-table
 *
 */

.handsontable th, .handsontable td {
  height: 28px;
  line-height: 28px;
}
.el-drawer__header {
  margin-bottom: 20px;
}
.el-drawer__body {
  position: relative;
  & > .editor-layout {
    & > .editor-layout__footer {
      right: 2px;
      bottom: 2px;
    }
  }
}


.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  color: #555;
  font-size: 14px;

  &-item {
    width: 60px;
    height: 60px;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4d4d4;
    border-radius: 50%;
    cursor: pointer;
    transition: all .3s linear;

    &:hover {
      box-shadow: 0px 0px 10px #90bdff;
    }

    &.completed {
      border-color: #4caf50;
      background-color: #e6fbe7;
    }
  }

  &-split {
    width: 70px;
    height: 70px;
    margin: 0 10px;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
  }
}

/**
 * full-cars
 */
.full-card {
  height: 100%;

  .el-card__body {
    height: calc(100% - 41px);
    overflow-y: auto;
  }
}
